package com.wendy.common.core.errcode.auth;

import com.wendy.common.core.constant.HttpStatus;
import com.wendy.common.core.errcode.base.BaseError;

public class LoginError extends BaseError  {


    private static final long serialVersionUID = -7284432619022443311L;


    public static LoginError NEED_USER_PASSWORD=new LoginError("用户/密码必须填写", HttpStatus.ERROR);
    public static LoginError LOGIN_USER_NOT_EXIST=new LoginError("登录用户：%s不存在", HttpStatus.ERROR);
    public static LoginError LOGIN_USER_STOP=new LoginError("对不起，您的账号：%S 已停用", HttpStatus.ERROR);
    public static LoginError LOGIN_USER_DEL=new LoginError("对不起，您的账号：%S 已被删除", HttpStatus.ERROR);
    public static LoginError PASSWORD_SIZE_LIMIT=new LoginError("密码长度必须在5到20个字符之间", HttpStatus.ERROR);
    public static LoginError USERNAME_SIZE_LIMIT=new LoginError("账户长度必须在2到20个字符之间", HttpStatus.ERROR);
    public static LoginError IP_LIMIT=new LoginError("很遗憾，访问IP已被列入系统黑名单", HttpStatus.ERROR);
    public static LoginError TOKEN_NOT_EXIST=new LoginError("未提供token", HttpStatus.ERROR);
    public static LoginError TOKEN_DISABLE=new LoginError("无效的token", HttpStatus.ERROR);

    public LoginError(String msg, Integer code) {
        super(msg, code);
    }

    public LoginError() {
    }


}
